import request from '@/utils/request'
import qs from 'qs'

export function meta_data_selectPlayers(data) {
  return request({
    url: '/meta/meta_data/selectPlayers',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function totalityData(data) {
  return request({
    url: '/meta/meta_data/totalityData',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function allByName(data) {
  return request({
    url: '/meta/player/json/allByName',
    method: 'post',
    data: qs.stringify(data)
  })
}


export function template_package(templateId) {
  return request({
    url: '/meta/template_package/json/all/'+templateId,
    method: 'post',
  })
}

export function tableHeader(data) {
  return request({
    url: '/meta/meta_data/json/tableHeader',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function checkAvailableOfAInput(data) {
  return request({
    url: '/meta/meta_data/checkAvailableOfAInput',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function insertComplex(data) {
  return request({
    url: '/meta/meta_data/insertComplex',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function player_advance(data) {
  return request({
    url: '/meta/player/json/advance',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function playerInfoByPlayerId4inputCommonData(data) {
  return request({
    url: '/meta/player/json/playerInfoByPlayerId4inputCommonData',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function meta_scenario(data) {
  return request({
    url: '/data/meta_scenario/json/cache',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function template_allByUsageId(data) {
  return request({
    url: '/meta/template/json/allByUsageId',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function tableHeader4Sort(data) {
  return request({
    url: '/meta/meta_data/json/tableHeader4Sort',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function byTemplateId(data) {
  return request({
    url: '/meta/json/byTemplateId',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function recentMetasDefault(data) {
  return request({
    url: '/meta/meta_data/recentMetasDefault',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function template_key(data) {
  return request({
    url: '/meta/template/json/key',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function metasOfRecentPlayers(data) {
  return request({
    url: '/meta/meta_data/metasOfRecentPlayers',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function meta_cache(data) {
  return request({
    url: '/data/meta/json/cache',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function updateMeta(data) {
  return request({
    url: '/meta/meta_data/updateMeta',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function dailyReportDefault(data) {
  return request({
    url: '/meta/meta_data/dailyReportDefault',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function generate_daily_report(data) {
  return request({
    url: '/meta/meta_data/generate_daily_report',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function saveReportData(data) {
  return request({
    url: '/meta/reportPlayerMap/saveReportData',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function contrastReportDefault(data) {
  return request({
    url: '/meta/meta_data/contrastReportDefault',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function generate_contrast_report(data) {
  return request({
    url: '/meta/meta_data/generate_contrast_report',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function tendencyReportDefault(data) {
  return request({
    url: '/meta/meta_data/tendencyReportDefault',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function generate_tendency_report(data) {
  return request({
    url: '/meta/meta_data/generate_tendency_report',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function reportPlayerMap_default(data) {
  return request({
    url: '/meta/reportPlayerMap/default',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function getReportClass(data) {
  return request({
    url: '/meta/reportPlayerMap/getReportClass',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function reportPlayerMap_select(data) {
  return request({
    url: '/meta/reportPlayerMap/select',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function deleteReportData(data) {
  return request({
    url: '/meta/reportPlayerMap/deleteReportData',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function showReport(data) {
  return request({
    url: '/meta/reportPlayerMap/showReport',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function injury_record(data) {
  return request({
    url: '/medical/injury_record/json/all',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function injury_record_dict(data) {
  return request({
    url: '/medical/injury_record/dict',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function playersOfThisCoach(data) {
  return request({
    url: '/meta/player/json/playersOfThisCoach',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function injury_record_search(data) {
  return request({
    url: '/medical/injury_record/json/search',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function injury_name_insert(data) {
  return request({
    url: '/medical/injury_name/json/insert',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function injury_name_all(data) {
  return request({
    url: '/medical/injury_name/json/all',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function injury_record_insert(data) {
  return request({
    url: '/medical/injury_record/json/insert',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function injury_record_update(data) {
  return request({
    url: '/medical/injury_record/json/update',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function injury_record_delete(data) {
  return request({
    url: '/medical/injury_record/json/delete',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function fms(data) {
  return request({
    url: '/bf/fms',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function synthesized(data) {
  return request({
    url: '/bf/synthesized',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function upper(data) {
  return request({
    url: '/bf/upper',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function partly(data) {
  return request({
    url: '/bf/partly',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function endurance(data) {
  return request({
    url: '/bf/endurance',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function balance(data) {
  return request({
    url: '/bf/balance',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function acceleration(data) {
  return request({
    url: '/bf/acceleration',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function lower(data) {
  return request({
    url: '/bf/lower',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function sensitive(data) {
  return request({
    url: '/bf/sensitive',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function bf_meta_all(data) {
  return request({
    url: '/bf/meta/json/all',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function batchSave(data) {
  return request({
    url: '/bf/batchSave',
    headers: {'Content-Type': 'application/json; charset=UTF-8'},
    method: 'post',
    data: data
  })
}
export function data4preview(data) {
  return request({
    url: '/bf/data4preview',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function singlePersonReportPreview(data) {
  return request({
    url: '/bf/report/singlePersonReportPreview',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function saveSinglePersonReport(data) {
  return request({
    url: '/bf/report/saveSinglePersonReport',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function personTendencyReportPreview(data) {
  return request({
    url: '/bf/report/personTendencyReportPreview',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function saveTendencyReport(data) {
  return request({
    url: '/bf/report/saveTendencyReport',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function personTendencyReport(data) {
  return request({
    url: '/bf/report/personTendencyReport',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function personContrastReportPreview(data) {
  return request({
    url: '/bf/report/personContrastReportPreview',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function personContrastReport(data) {
  return request({
    url: '/bf/report/personContrastReport',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function saveContrastReport(data) {
  return request({
    url: '/bf/report/saveContrastReport',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function analysisReport(data) {
  return request({
    url: '/bf/report/analysisReport',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function updateReportMemo(data) {
  return request({
    url: '/bf/report/updateReportMemo',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function selectByPackageId(data) {
  return request({
    url: '/meta/meta_package/selectByPackageId',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function importantPlayerTendencyReportAll(data) {
  return request({
    url: '/meta/meta_data/importantPlayerTendencyReportAll',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function allMetaId(data) {
  return request({
    url: '/meta/meta_data/allMetaId',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function meta_all(data) {
  return request({
    url: '/meta/json/all',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function insert4DailyTraining(data) {
  return request({
    url: '/meta_data_simple/insert4DailyTraining',
    headers: {'Content-Type': 'application/json; charset=UTF-8'},
    method: 'post',
    data
  })
}

export function userTemplateInsert(data) {
  return request({
    url: '/meta_data_simple/userTemplateInsert',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function userTemplateSelect(data) {
  return request({
    url: '/meta_data_simple/userTemplateSelect',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function importFromLatest(data) {
  return request({
    url: '/meta_data_simple/importFromLatest',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function deleteMetaData(data) {
  return request({
    url: '/meta/meta_data/deleteMetaData',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function updateCreateDate(data) {
  return request({
    url: '/meta/meta_data/updateCreateDate',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function maintain_meta_data(data) {
  return request({
    url: '/maintain/meta_data',
    method: 'post',
    data: qs.stringify(data)
  })
}
export async function genFakeData(data) {
 let res = await request({
    url: '/maintain/genFakeData',
    method: 'post',
    data: qs.stringify(data)
  })
  return res
}
